import request from '@/utils/requst'
export const getOrderCount = (start, end) => {
  return request.get('/api/order-service/report/orderCount', {
    params: {
      start,
      end
    }
  })
}
export const getOrderAmount = (start, end) => {
  return request.get('/api/order-service/report/orderAmount', {
    params: {
      start,
      end
    }
  })
}
/// api/order-service/report/amountCollect/:collectType/:start/:end

export const getOrderAmountCollect = (start, end, type) => {
  return request.get(`/api/order-service/report/amountCollect/${type}/${start}/${end}`)
}
/// api/order-service/report/regionCollect/

export const getregionCollect = (start, end) => {
  return request.get(`/api/order-service/report/regionCollect/${start}/${end}`)
}

// /api/order-service/report/skuTop/:topValue/:start/:end
export const getskuTop = (start, end) => {
  return request.get(`api/order-service/report/skuTop/10/${start}/${end}`)
}
